﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RedHouse.AdminControl
{
    public partial class Setting : System.Web.UI.Page
    {
        public int Action { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["Action"] != null)
                {
                    Action = int.Parse(Request.QueryString["Action"].ToString());
                }
                Initialize();
            }
        }

        private void Initialize()
        {
            ucEmailSetting.Visible = false;

            switch (Action)
            {
                case 1:
                    ucEmailSetting.Visible = true;
                    break;
                default:
                    break;
            }
        }
    }
}